<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<style lang="less">
    * {
        margin: 0px;
        padding: 0px;
        list-style: none;
    }

</style>
<script>
    import {appAll} from "./api/appAll";
    export default {
        name: "App",
        created() {
            appAll().then(res =>{
              console.log(res.userInfo)
              if(!(res.code==500)){
                this.$store.commit("newMessage",res.userInfo)
                this.$store.commit("updataLogin",true)
              }
            })
        }
    }
</script>